Bandwidth Test In Networking System-On-Chip Verification

ABSTRACT

Aspects of the disclosed technology relate to techniques of bandwidth test in networking system-on-chip design verification. A hardware model of interface circuitry implemented in a reconfigurable hardware modeling device associates dispatch time information with messages when the messages are dispatched by a hardware model of a circuit design implemented in the reconfigurable hardware modeling device. The dispatch time information of a particular message includes information about when, based on a model time reference provided in the reconfigurable hardware modeling device, the particular message is dispatched by the hardware model of the circuit design. The messages and the dispatch time information are sent to a traffic analysis device, which determines bandwidth information of ports of the circuit design based on the dispatch time information.

RELATED APPLICATIONS

This application claims the benefit of U.S. Provisional PatentApplication No. 62/412,803, filed on Oct. 25, 2016, and namingKrishnamurthy Suresh et al. as inventors, which application isincorporated entirely herein by reference.

FIELD OF THE DISCLOSED TECHNOLOGY

The present disclosed technology relates to the field of circuit designverification technology. Various implementations of the disclosedtechnology may be particularly useful for verifying networkingsystem-on-chip circuit designs.

BACKGROUND OF THE DISCLOSED TECHNOLOGY

Modern integrated circuit designs have become extremely complex. As aresult, various techniques have been developed to verify that circuitdesigns will operate as desired before they are implemented in anexpensive manufacturing process. For example, logic simulation is a toolused for verifying the logical correctness of a hardware design.Designing hardware today involves writing a program in the hardwaredescription language. A simulation may be performed by running thatprogram. If the program runs correctly, then one can be reasonablyassured that the logic of the design is correct at least for the casestested in the simulation.

Software-based simulation, however, may be too slow for large complexdesigns such as SoC (System-on-Chip) designs. The speed of execution ofa simulator drops significantly as the design size increases due tocache misses and memory swapping. Emulation and prototypingsignificantly increase verification productivity by employingreconfigurable hardware modeling devices including emulators andprototyping devices. Field programmable gate arrays (FPGAs)-basedemulators and prototyping devices rely on an actual siliconimplementation and perform circuit verification generally in parallel asthe circuit design will execute in a real device. By contrast, asimulator performs circuit verification by executing the hardwaredescription code serially. The different styles of execution can lead toorders of magnitude differences in execution time.

While reconfigurable hardware modeling device-based emulation andprototyping are much faster than simulation for system-on-chip designs,verifying circuit designs for networking applications at the systemlevel remains a challenge. These designs can reach billion-gate sizesand are complex in various dimensions, imposing a variety ofrequirements on the verification environment.

A network switch, for example, receives traffic from its ingress pininterfaces and after some traffic arbitration, flow control and routing,sends it out through its egress pin interfaces. These ingress and egresspin interfaces are also known as ports. The port interfaces follow thenetwork protocol in both directions. Hence the verification componentsthat drive traffic into the ports and receive traffic from the portshave to be protocol compliant. A modern-day Ethernet switch can have alarge number of such ingress/egress ports (e.g., from 64 to 256). Thenumber is expected to grow up to 1024 in the coming future. All portconfigurations need to be tested; and the performance and bandwidth ofthe network switch design need to be checked and measured.

A verification system typically includes a reconfigurable hardwaremodeling device programmed to implement at least a hardware model of thenetworking circuit design under test, a traffic generation deviceconfigurable to generate traffic mimicking the complexities of real lifenetworking traffic, and a traffic analysis device configurable toqualify and measure a variety of different parameters important for theverification. The traffic generation device may be able to createmultiple streams of traffic and then combine them in a desiredproportion or scheme to be sent to a given port on the switch design.The packets in a stream may be given different priorities as per theprotocol.

The traffic generation device and the traffic analysis device may beimplemented by a complex software tool running on a computer. Thiscomplex software tool can generate message packets at a speed muchfaster than the speed at which the hardware model implemented on areconfigurable hardware modeling device can process message packets.This is at least in part because the traffic generation is a softwarealgorithm operating at a high level of abstraction whereas the hardwaremodel runs the switch design at a low, RTL level of abstraction.

The speed mismatch can complicate verifying performance of a circuitdesign for a networking device. Latency and bandwidth are two importantperformance characteristics, defining the speed and capacity of anetworking device, respectively. Latency represents a delay for relayinga message, which can be caused by limited processing speed and queuingof the networking device; and bandwidth represents maximum throughput orthe amount of data that can be transferred during a second. A goodnetworking device typically is able to deliver high bandwidth and lowlatency. Determination of these two time-related performance componentsof a modeled circuit design is thus important for design verification.Different operating speeds, however, makes it difficult for the trafficanalysis device to perform it.

A mere replacement of wall-clock time with model time provided in thereconfigurable hardware modeling device as a global time referencecannot solve the problem. The traffic generation device typically runsahead of the modeled circuit design and thus at any point of time itwould have already generated messages to be consumed by the modeledcircuit design at a future model time. The situation is reversed for thetraffic analysis device, which typically analyzes packets sent out inthe past w.r.t. the current model time. Moreover, because of messagebuffering between the traffic generation/analysis device and thereconfigurable hardware modeling device for flow control, finding aglobal time reference does not appear to be a viable solution to thespeed mismatch problem associated with the latency and bandwidthanalysis.

BRIEF SUMMARY OF THE DISCLOSED TECHNOLOGY

Aspects of the disclosed technology relate to techniques of bandwidthtest in networking system-on-chip design verification. In one aspect,there is a method comprising: associating, by a hardware model ofinterface circuitry implemented in a reconfigurable hardware modelingdevice, dispatch time information with messages when the messages aredispatched by a hardware model of a circuit design implemented in thereconfigurable hardware modeling device, the dispatch time informationof a particular message including information about when, based on amodel time reference provided in the reconfigurable hardware modelingdevice, the particular message is dispatched by the hardware model ofthe circuit design; and sending the messages and the dispatch timeinformation to a traffic analysis device.

The model time reference may be provided at least in part by a multi-bitregister in the reconfigurable hardware modeling device. The associatingdispatch time information with messages may comprise: inserting thedispatch time information of each of the messages in a metadata field ofor a data field of the each of the messages or in special messages.

The method may further comprise: associating, by the hardware model ofthe interface circuitry, arrival time information with the messages whenthe messages are delivered to the hardware model of the circuit design,the arrival time information of a particular message includinginformation about when, based on the model time reference, theparticular message is delivered to the hardware model of the circuitdesign, wherein the sending comprises sending the arrival timeinformation along with the messages and the dispatch information to thetraffic analysis device. The associating arrival time information withmessages may comprise: inserting the arrival time information of each ofthe messages in a metadata field of or a data field of the each of themessages or in special messages.

The method may still further comprise: determining, by the messageanalysis device, bandwidth information of ports of the circuit designbased on the dispatch time information and latency information based onthe arrival time information and the dispatch time information.

The hardware model of the interface circuitry may be configured to bothconvert the messages from signal-level messages to transaction-levelmessages before sending the messages to the traffic analysis device andconvert the messages from transaction-level messages to signal-levelmessages before delivering the messages to the hardware model of thecircuit design.

The reconfigurable hardware modeling device may be a hardware-basedemulator or an FPGA-based prototyping device. The traffic generationdevice may be implemented at least in part by a network traffic tool,wherein the network traffic tool is implemented by a virtual machinerunning on a computer. The circuit design may be a design for a networkswitch, a router, a network processor, or a network gateway.

In another aspect, there are one or more non-transitorycomputer-readable media storing computer-executable instructions forcausing one or more processors to generate bitstreams for programming areconfigurable hardware modeling device to implement circuitry hardwaremodels, the circuitry hardware models comprising: a hardware model of acircuit design, and a hardware model of interface circuitry configurableto associate dispatch time information with messages when the messagesare dispatched by a hardware model of a circuit design implemented inthe reconfigurable hardware modeling device, the dispatch timeinformation of a particular message including information about when,based on a model time reference provided in the reconfigurable hardwaremodeling device, the particular message is dispatched by the hardwaremodel of the circuit design.

In still another aspect, there is reconfigurable hardware modelingdevice programmed to implement circuitry hardware models, the circuitryhardware models comprising: a hardware model of a circuit design, and ahardware model of interface circuitry configurable to associate dispatchtime information with messages when the messages are dispatched by ahardware model of a circuit design implemented in the reconfigurablehardware modeling device, the dispatch time information of a particularmessage including information about when, based on a model timereference provided in the reconfigurable hardware modeling device, theparticular message is dispatched by the hardware model of the circuitdesign.

The hardware model of the interface circuitry may be configurable tofurther associate arrival time information with the messages when themessages are delivered to the hardware model of the circuit design, thearrival time information of a particular message including informationabout when, based on the model time reference, the particular message isdelivered to the hardware model of the circuit design, wherein themessages, the arrival time information and the dispatch information aresent to a traffic analysis device. The traffic analysis device maydetermine bandwidth information of ports of the circuit design based onthe dispatch time information and determine latency information based onthe arrival time information and the dispatch time information.

Certain inventive aspects are set out in the accompanying independentand dependent claims. Features from the dependent claims may be combinedwith features of the independent claims and with features of otherdependent claims as appropriate and not merely as explicitly set out inthe claims.

Certain objects and advantages of various inventive aspects have beendescribed herein above. Of course, it is to be understood that notnecessarily all such objects or advantages may be achieved in accordancewith any particular embodiment of the disclosed technology. Thus, forexample, those skilled in the art will recognize that the disclosedtechnology may be embodied or carried out in a manner that achieves oroptimizes one advantage or group of advantages as taught herein withoutnecessarily achieving other objects or advantages as may be taught orsuggested herein.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1A shows an illustrative example of an emulation system with anemulator being coupled to targets; FIG. 1B shows an illustrative exampleof an emulation circuit board.

FIG. 2 illustrates a programmable computer system with which variousembodiments of the disclosed technology may be employed.

FIG. 3 illustrates an example of a verification system for verifyingnetworking system-on-chip that may be employed by various embodiments ofthe disclosed technology.

FIG. 4 illustrates an example of a traffic generation device implementedby a network traffic tool installed in a host computer system.

FIG. 5A illustrates an example of a flowchart 500 showing a process forbandwidth test in networking design verification that may be implementedaccording to various examples of the disclosed technology.

FIG. 5B illustrates an example of a flowchart 505 showing a process forbandwidth test in networking design verification that may be implementedaccording to various examples of the disclosed technology.

FIG. 6 illustrates an example of a message datagram.

DETAILED DESCRIPTION OF THE DISCLOSED TECHNOLOGY

General Considerations

Various aspects of the present disclosed technology relate to techniquesof bandwidth test in networking system-on-chip design verification. Inthe following description, numerous details are set forth for thepurpose of explanation. However, one of ordinary skill in the art willrealize that the disclosed technology may be practiced without the useof these specific details. In other instances, well-known features havenot been described in detail to avoid obscuring the present disclosedtechnology.

Some of the techniques described herein can be implemented in softwareinstructions stored on a computer-readable medium, software instructionsexecuted on a computer, or some combination of both. Some of thedisclosed techniques, for example, can be implemented as part of anelectronic design automation (EDA) tool. Such methods can be executed ona single computer or on networked computers.

Although the operations of the disclosed methods are described in aparticular sequential order for convenient presentation, it should beunderstood that this manner of description encompasses rearrangements,unless a particular ordering is required by specific language set forthbelow. For example, operations described sequentially may in some casesbe rearranged or performed concurrently. Moreover, for the sake ofsimplicity, the disclosed flow charts and block diagrams typically donot show the various ways in which particular methods can be used inconjunction with other methods. Additionally, the detailed descriptionsometimes uses terms like “associate”, “send” and “deliver” to describethe disclosed methods. Such terms are high-level abstractions of theactual operations that are performed. The actual operations thatcorrespond to these terms will vary depending on the particularimplementation and are readily discernible by one of ordinary skill inthe art.

Also, as used herein, the term “design” is intended to encompass datadescribing an entire integrated circuit device. This term also isintended to encompass a smaller group of data describing one or morecomponents of an entire device, however, such as a portion of anintegrated circuit device. Still further, the term “design” also isintended to encompass data describing more than one microdevice, such asdata to be used to form multiple microdevices on a single wafer.

Illustrative Hardware Modeling Environment

Reconfigurable hardware modeling devices can be emulators or prototypingdevices. Two types of emulators have been developed. The first type isFPGA-based. In an FPGA-based architecture, each FPGA chip has a networkof prewired blocks of look-up tables and coupled flip-flops. A look-uptable can be programmed to be a Boolean function, and each of thelook-up tables can be programmed to connect or bypass the associatedflip-flop(s). Look-up tables with connected flip-flops act asfinite-state machines, while look-up tables with bypassed flip-flopsoperate as combinational logic. The look-up tables can be programmed tomimic any combinational logic of a predetermined number of inputs andoutputs. To emulate a circuit design, the circuit design is firstcompiled and mapped to an array of interconnected FPGA chips. Thecompiler usually needs to partition the circuit design into pieces(sub-circuits) such that each fits into an FPGA chip. The sub-circuitsare then synthesized into the look-up tables (that is, generating thecontents in the look-up tables such that the look-up tables togetherproduce the function of the sub-circuits). Subsequently, place and routeare performed on the FPGA chips in a way that preserves the connectivityin the original circuit design.

The programmable logic chips employed by an emulator may be commercialFPGA chips or custom-designed emulation chips containing programmablelogic blocks. A custom FPGA-based emulator can have a specially designedinternal interconnection network of programmable elements within eachcustom FPGA, an external interconnecting network and I/O structure ofcustom FPGAs, and a design-under-test debug engine. Such architectureenables, compared to a commercial FPGA-based counterpart, fast andcorrect-by-construction compilation and high design visibility in thesilicon fabric that assumes 100% access without probe compilation andrapid waveform tracing. A commercial FPGA chip may have somewhat largercapacity density than a custom FPGA chip. For a given design, a customFPGA-based emulator may need more FPGAs than a commercial FPGA-basedemulator, leading to larger physical dimensions and higher powerconsumption.

The second type of emulators is processor-based: an array of Booleanprocessors able to share data with one another is employed to map acircuit design, and Boolean operations are scheduled and performedaccordingly. Similar to the FPGA-based, the circuit design needs to bepartitioned into sub-circuits first so that the code for eachsub-circuit fits the instruction memory of a processor. The compilationspeed of a processor-based emulator, however, is much faster than thoseof a FPGA-based emulator. Drawbacks are limited speed of execution in atransaction-based mode, large power consumption, and large physicaldimensions compared to a FPGA-based emulator.

An emulator may operate in various modes. In an in-circuit emulationmode, the emulator is connected with a user's target system to form aprototype of the system the user is designing. The emulator typicallyreplaces the circuit being designed for the target system, allowingsystem-level and software testing prior to silicon availability.Although an emulator may run up to six orders of magnitude faster than asimulator, it is often not fast enough to run at the same speed of thephysical target system (a few megahertz vs hundreds of megahertz). Speedrate adapters may be introduced between the target system and theemulator. A rate adapter behaves like a buffer. It caches the signalactivity from the design-under-test (DUT) at emulation speed and sendsit at real-time speed to the target system. Conversely, it captures thesignal activity from the target system at full speed, caches it, andthen sends it back to the DUT at emulation speed. Even when a rateadapter is available, the constant evolution of speed and complexity ofindividual I/O protocols may make timely rate adapter developmentdifficult.

In an acceleration mode, the physical target system is replaced by avirtual target system modelled via one of the high-level languages suchas SystemVerilog, SystemC, or C++. The acceleration mode leverages theexisting simulation testbench and removes the need for external rateadapters. The testbench creates test vectors and check correspondingresponses of the circuit model. In addition to the elimination of speedadapters, the acceleration mode has advantages such as no hardwaredependencies, the ability to use the emulator remotely, and the abilityto run verification of corner cases.

The acceleration mode can be cycle-based or transaction-based. Thecycle-based acceleration mode employs a signal-level or bit-levelinterface connecting the testbench processed by the host workstation tothe design mode on the emulator. Each and every transition on each andevery interface signal must be transferred between the testbench and thedesign model at the slow speed of the testbench simulated in theworkstation. As a result, the speed of the emulator is wasted waiting tocarry out these signal transfers.

The transaction-based acceleration reduces the traffic betweenworkstation and emulator by replacing bit-by-bit exchanges withtransaction exchanges. Data exchange is through so-called transactors. Atransactor, including a front-end proxy interface on the workstation orhost computer, a back-end bus-functional model on the emulator and aphysical communication channel between the host computer and theemulator, converts high-level commands from the testbench on the hostcomputer into signal-level bit sequences required by thedesign-under-test model on the emulator, and vice versa. This allowsdata being streamed and buffered between the testbench and thedesign-under-test, speeding up the execution of the testbench. A designteam can thus access the full performance of the emulator. In additionto performance, the transaction-based emulation eliminates the need forrate adapters. The design-under-test can connect to a “virtual device”(a software model of the device) that runs on the host computer througha transaction-level interface or to a physical device through atransaction-level interface and a “virtual device” acting as a bridgingdevice.

In addition to emulators, reconfigurable hardware modeling devices alsoinclude FPGA prototyping devices. FPGA prototyping is typically deployednear the end of the verification process to catch system-level issues.For designs that rely heavily on commercial intellectual property (IP),an FPGA-based prototype is an ideal test platform for ensuring all IPcomponents perform together. An FPGA-based prototype can also serve as avehicle for software development and validation. Embedded software hasbecome the dominant part of the effort in modern System-on-Chip (SoC)design. FPGA prototyping provides software developers early access to afully functioning hardware platform well before real silicon. Thisenables early software development tasks such as operating system (OS)integration and application testing. The increased productivity ofsoftware development and validation greatly accelerates a product'stime-to-market.

Compared to FPGA-based emulators which typically operate at one to twomillion cycles per second, FPGA prototypes are designed and built toachieve the highest speed of execution possible, allowing the extensionof the speed range into tens of megahertz. The downside to FPGAprototyping is capacity limitations, limited debugging capabilities andlong bring-up time. With growing complexity of FPGAs and advancement inboth emulation and prototyping technologies, the lines betweenFPGA-based prototyping and emulation are increasingly blurring.

In some embodiments, the disclosed technology may be implemented as partof a hardware emulation environment, such as the one illustrated in FIG.1A. As seen in this figure, the hardware emulation environment includesan emulator 120 coupled to a host computer or workstation 110. Theworkstation 110 may be implemented by one or more computing systems. Onecomputing system may include a single computer or multiple computers(e.g., a master computer and a plurality of slave computers). Theworkstation provides the capability to load the DUV(design-under-verification, also referred to as DUT—design under test)model into the emulator, controls the execution of the DUT model on theemulator over time, and serves as a debugging interface into the DUVmodel on the emulator. As discussed previously, the workstation mayinclude the testbench and perhaps other software models in some of theoperational modes.

The emulator 120 includes multiple printed circuit boards (emulationcircuit boards) 130. These emulation circuit boards 130 are networked(not shown). A circuit design may be partitioned by the workstation 110and loaded to the emulation circuit boards 130 for emulation.

In the in-circuit emulation mode, one or more targets 180 may be coupledto the emulator 120 as shown in FIG. 1A. In some simple environments, atarget may be a piece of test equipment that generates and verifies testdata such as a network tester. In other environments, the target can bethe actual circuitry with which the DUT model will interact in its finalapplication (e.g., other hardware components of the system for which theDUT model is designed). A target can be either a static target or adynamic target, depending on whether design clock signals run in theemulator can be suspended or not.

FIG. 1B illustrates an example of an emulation circuit board 130. Theemulation circuit board 130 includes an array of emulation devices 140.The emulation devices 140 can be programmed to model, for example,combinatorial logic components, sequential circuit components andmemories. The emulation devices 140 may be processor-based orFPGA-based.

Also included in the emulation circuit board 130 are a configurableinterconnect system 150, a programming system 160, and a debug system170. A portion of a circuit design on one emulation device may need datacomputed by another portion of the design on another emulation device.The configurable interconnect system 150 allows data to be moved betweenemulation devices 140. In some implementations, the configurableinterconnect system 150 may include a cross-bar device, a multiplexer,some other configurable network, or any combination thereof.

The programming system 160 enables a variety of other types of data tobe brought in or out from an emulation device 140. Examples includeprogramming data to configure an emulation device to perform aparticular function, visibility data collected from the debug system 170to be brought to the host workstation 110 for display, and content dataeither read from or written to memory circuitry in an emulation device140.

The debug system 170 enables the emulation system to monitor thebehavior of a modeled circuit design. Needed data for visibility viewingpurposes can be stored in the debug system 170. The debug system 170 mayalso provide resources for detecting specific conditions occurring inthe circuit design. Such condition detection is sometimes referred to astriggering.

The emulator 120 is coupled to the host workstation 110 through aninterface system 190. The interface system 190 comprises one or moreinterfaces. A typical interface is optimized to transport large amountsof data such as data containing the emulated circuit design model (e.g.,FPGA configuration bitstreams), initial contents of registers and designmemories and data for debugging purposes. This interface is independentof design-under-test and may comprise dedicated logic or programmedlogic in the emulator.

The interface system may also comprise one or more transaction-levelinterfaces. These interfaces may be optimized for small packets of dataand fast streaming speed. The speed may be, for example, in the order of2-3 Gigabits per second. The communication is performed throughtransactors as discussed previously. A transactor includes a back-endbus-functional model—instrumented logic in the emulator model, whichrequires the emulator infrastructure clock keep running even though thedesign clocks can be stopped.

It should also be appreciated that the emulation system in FIG. 1A andthe emulation circuit board 130 in FIG. 1B are illustrated as examplesonly, and they are not intended to be limiting. Various embodiments ofthe disclosed technology may be implemented using only a subset of thecomponents illustrated in the figures, or include an alternatecombination of components, including components that are not shown inthe figures.

FIG. 2 shows an illustrative example of a computing device 201 that mayserve as the workstation 110. As seen in this figure, the computingdevice 201 includes a computing unit 203 with a processing unit 205 anda system memory 207. The processing unit 205 may be any type ofprogrammable electronic device for executing software instructions, butwill conventionally be a microprocessor. The system memory 207 mayinclude both a read-only memory (ROM) 209 and a random access memory(RAM) 211. As will be appreciated by those of ordinary skill in the art,both the read-only memory (ROM) 209 and the random access memory (RAM)211 may store software instructions for execution by the processing unit205.

The processing unit 205 and the system memory 207 are connected, eitherdirectly or indirectly, through a bus 213 or alternate communicationstructure, to one or more peripheral devices. For example, theprocessing unit 205 or the system memory 207 may be directly orindirectly connected to one or more additional memory storage devices,such as a “hard” magnetic disk drive 215, a removable magnetic diskdrive 217, an optical disk drive 219, or a flash memory card 221. Theprocessing unit 205 and the system memory 207 also may be directly orindirectly connected to one or more input devices 223 and one or moreoutput devices 225. The input devices 223 may include, for example, akeyboard, a pointing device (such as a mouse, touchpad, stylus,trackball, or joystick), a scanner, a camera, and a microphone. Theoutput devices 225 may include, for example, a monitor display, aprinter and speakers. With various examples of the computer 201, one ormore of the peripheral devices 215-225 may be internally housed with thecomputing unit 203. Alternately, one or more of the peripheral devices215-225 may be external to the housing for the computing unit 103 andconnected to the bus 213 through, for example, a Universal Serial Bus(USB) connection.

With some implementations, the computing unit 203 may be directly orindirectly connected to one or more network interfaces 227 forcommunicating with other devices making up a network. The networkinterface 227 translates data and control signals from the computingunit 203 into network messages according to one or more communicationprotocols, such as the transmission control protocol (TCP) and theInternet protocol (IP). Also, the interface 227 may employ any suitableconnection agent (or combination of agents) for connecting to a network,including, for example, a wireless transceiver, a modem, or an Ethernetconnection. Such network interfaces and protocols are well known in theart, and thus will not be discussed here in more detail.

It should be appreciated that the computer 201 is illustrated as anexample only, and it not intended to be limiting. Various embodiments ofthe disclosed technology may be implemented using one or more computingdevices that include the components of the computer 201 illustrated inFIG. 2, which include only a subset of the components illustrated inFIG. 2, or which include an alternate combination of components,including components that are not shown in FIG. 2. For example, variousembodiments of the disclosed technology may be implemented using amulti-processor computer, a plurality of single and/or multiprocessorcomputers arranged into a network, or some combination of both.

Illustrative Networking Design Verification Environment

FIG. 3 illustrates an example of a verification system 300 for verifyingnetworking system-on-chip that may be employed by various embodiments ofthe disclosed technology. The system comprises a reconfigurable hardwaremodeling device 310 and a traffic generation device 320. Thereconfigurable hardware modeling device 310 may be an emulator or anFPGA-based prototyping device. The emulator may be implemented by theemulator shown in FIG. 1A or 1B. The reconfigurable hardware modelingdevice 310 is programmed to implement circuitry hardware models, whichcomprises: a hardware model of a circuit design 340 and a hardware modelof interface circuitry 330. The circuit design is a networking circuitdesign such as a design for a network switch, a router, a networkprocessor, or a network gateway. Like a typical networking circuitdesign, the circuit design may have one or more ports. The verificationsystem 300 can be used for developing and verifying the circuit design,software associated with the circuit design or both.

The hardware model of interface circuitry 330 can convert ingresstransaction-level messages to ingress signal-level messages for thehardware model of the circuit design 340 and converts egresssignal-level messages dispatched from the hardware model of the circuitdesign 340 to egress transaction-level messages. The transmitting of theingress signal-level messages and the egress signal-level messages bythe hardware model of the circuit design conforms to a communicationprotocol. The hardware model of interface circuitry 330 may comprise aback-end bus-functional model and a conditioner. The back-endbus-functional model is part of a transactor while the conditioner isspecific to needs of the communication protocol.

The traffic generation device 320 is configured to generate and send theingress transaction-level messages and to receive and analyze the egresstransaction-level messages. The reconfigurable hardware modeling device310 and the traffic generation device 320 employ a backpressure flowcontrol independent of the communication protocol. The backpressure flowcontrol can cause the traffic generation device to suspend sendingmessages when one or more message buffers in the traffic generationdevice, the reconfigurable hardware modeling device, or both cannotaccept more messages based on predetermined conditions.

The traffic generation device 320 may be implemented by a networktraffic tool installed in a computer system. The software-based tool andthe synthesizable hardware models operating in the transaction-basedacceleration mode can eliminate some hardware devices otherwise requiredand, with that, hardware dependencies, including noise, power, cables,reliability and associated costs. The virtual test environment maysupport multi-users and multi projects, be accessed remotely anddeployed in datacenters.

FIG. 4 illustrates an example of a traffic generation device implementedby a network traffic tool 412 installed in a host computer system 410.The host computing system 410 may include one or more computers,workstations, or the like. FIG. 2 shows an example of a computer capableof implementing the host computing system 410.

The host computing system 410 executes one or more virtual machines 411,which can create a virtual environment having virtual electronichardware and run software on the virtual electronic hardware. The hostcomputing system 410 also includes a hypervisor (not shown in thefigure) to configure and control the virtual machines 411 in the hostcomputing system 410. In some embodiments, the virtual machines 411 caninclude virtual electronic hardware that mimics the hardwarearchitecture of the host computing system 410, for example, allowing thehost computing system 410 to run multiple operating systems. The virtualmachines 411 may also virtualize hardware architectures that differ fromthe architecture of the host computing system 410, such as hardwarearchitecture for different computing system, networking device, or thelike.

At least one of the virtual machines 411, in some embodiments,implements a network traffic tool 412 to generate one or more of thedata packets for testing the circuit design.

The network traffic tool 412 can also receive one or more of the datapackets. In some embodiments, the virtual machines 411 implementing thenetwork traffic tool 412 can be implemented in a kernel space or a userspace to virtualize hardware architecture of a networking device or thelike and run software or other machine-executable instructions toimplement the network traffic tool 412. The network traffic tool 412 maygenerate reports indicating, for example, how the circuit designresponded to the data packets generated by the network traffic tool 412,abided by one or more communication protocols, or the like.

Although FIG. 4 shows a single network traffic tool 412 implemented inone of the virtual machines 411, in some embodiments, multiple instancesof the network traffic tool 412 can be implemented in a common virtualmachine, in different virtual machines, or the like. In someembodiments, a plurality of the virtual machines 411 may each includemultiple instances of the network traffic tool 412. Each of theinstances of the network traffic tool 412 may generate data packets forone of the ports of the circuit design under test.

The virtual machines 411 can exchange data packets with a host programrunning on the host computing system 410 through a virtual interface413. The host program can exchange data packets with a hardware model ofa circuit design 440 implemented on a reconfigurable hardware modelingdevice 420 through a software interface model 414 and a hardware modelinterface circuitry 430. Sometimes the software interface model 414 andthe hardware model interface circuitry 430 together or only the latteris referred to as transactor.

Bandwidth with Respect to Model Time

A reconfigurable hardware modeling device provides a modeled timereference (model time). A time difference between two events of interestin the model execution can be derived with respect to the model time.This time difference represents a direct measure of the real time(wall-clock time) that may elapse in a real life implementation of thecircuit for the same two events, within some pre-specified precision.This pre-specified precision can be thought of as the smallest timeamount that can be tolerated between the wall-clock time difference andthe modeled time difference. Note that for any given (arbitrarily small)desired precision value, the hardware modeling device usually can beconfigured to provide that precision. The model time advance often hasno direct correlation to the wall-clock or real time advance while themodel is executing.

The implementation and representation of the modeled time or model timemay vary. A possible implementation may involve building a multi-bit(say 64 bits) register in the hardware modeling device infrastructurewhich maintains the absolute value of the current model time. Thisregister keeps getting updated with appropriate time increments as thehardware modeling device executes the model. For example, if a clock hasa specific period, then the time register is increased by a value ofthis period upon each successive clock edge occurrence. In this case thesmallest allowed time increment is the precision of the model time.

FIG. 5A illustrates an example of a flowchart 500 showing a process forbandwidth test in networking design verification that may be implementedaccording to various examples of the disclosed technology. FIG. 5Billustrates another example of a flowchart 505 showing a process forbandwidth test in networking design verification that may be implementedaccording to various examples of the disclosed technology. For ease ofunderstanding, methods of bandwidth analysis in networking designverification that may be employed according to various embodiments ofthe disclosed technology will be described with reference to theverification system 300 illustrated in FIG. 3 and the one illustrated inFIG. 4 and the flow chart 500 illustrated in FIG. 5A and the flow chart505 illustrated in FIG. 5B. It should be appreciated, however, thatalternate implementations of a verification system may be used toperform the method of bandwidth test in networking design verificationin the flow chart 500 or in the flow chart 505 according to variousembodiments of the disclosed technology. In addition, it should beappreciated that implementations of the verification system 300 may beemployed to implement methods of bandwidth test in networking designverification according to different embodiments of the disclosedtechnology other than the one illustrated by the flow chart 500 in FIG.5A or illustrated by the flow chart 505 in FIG. 5B.

In operation 510 of the flow chart 500, the hardware model of interfacecircuitry 330 associates dispatch time information with messages whenthe messages are dispatched by the hardware model of the circuit design340. The dispatch time information of a particular message includesinformation about when, based on a model time reference provided in thereconfigurable hardware modeling device 310, the particular message isdispatched by the hardware model of the circuit design 340. The messagesmay be generated initially by the traffic generation device 320. Thetraffic generation device 320 may be implemented at least in part by anetwork traffic tool which is implemented by a virtual machine runningon a computer. One example of such as a traffic generation device isillustrated in FIG. 4. The circuit design may be a design for a networkswitch, a router, a network processor, or a network gateway.

The dispatch time information of each of the messages may be inserted ineither a metadata field of or a data field of each of the messages. FIG.6 illustrates an example of a message datagram. The metadata fieldincludes metadata type 610 and metadata value 620. The data field isshown as payload 630. For an error-control protocol such as TransmissionControl Protocol (TCP), the checksum/signature embedded in a message mayneed to be recalculated if the dispatch time information is inserted inthe data field. Alternatively, special messages may be used to carry thedispatch time information.

A message can be a series of data bytes consumed over multiple clockcycles at the port of the hardware model of the circuit design 340. Thepoint of exit may be treated as the point of exit of the first set ofbytes or the last set of bytes for that same message.

In operation 530 of the flow chart 500, the hardware model of interfacecircuitry 330 sends the messages and the dispatch time information to atraffic analysis device. The dispatch time information can be used toderive bandwidth information. The traffic generation device 320 may beconfigured to analyze the messages received. Alternatively, the trafficanalysis device may be a device separated from or in addition to thetraffic generation device 320.

In operation 515 of the flow chart 505, the hardware model of interfacecircuitry 330 associates arrival time information with messages when themessages are delivered to the hardware model of the circuit design 340.The arrival time information of a particular message includesinformation about when, based on a model time reference provided in thereconfigurable hardware modeling device 310, the particular message isdelivered to the hardware model of the circuit design 340. The arrivaltime information of each of the messages may be inserted in either ametadata field of or a data field of each of the messages.Alternatively, special messages may be used to carry the arrival timeinformation. A message can be a series of data bytes consumed overmultiple clock cycles at the port of the hardware model of the circuitdesign 340. The point of entry of a message may be treated as the pointof entry of the first set of bytes or the last set of bytes for themessage.

In operation 525 of the flow chart 505, the hardware model of interfacecircuitry 330 associates dispatch time information with the messageswhen the messages are dispatched by the hardware model of the circuitdesign 340. The model time reference provides current model time whichcan be treated as the dispatch time. The point of exit of a message maybe treated as the point of exit of the first set of bytes or the lastset of bytes for the message. The dispatch time information of each ofthe messages may be inserted in the same location where the arrival timeinformation is inserted such as the metadata field of or the data fieldof each of the messages, or may use the special messages to carry thearrival time information.

In operation 535 of the flow chart 505, the messages, the arrival timeinformation and the dispatch time information are sent to the trafficanalysis device. Based on the arrival time information and the dispatchtime information, the traffic analysis device can derive latencyinformation. For example, the difference between the dispatch time andthe arrival time can be treated as the latency. The dispatch timeinformation can be used to derive bandwidth information.

With various implementations of the disclosed technology, the hardwaremodel of interface circuitry 330 is also configured to convert themessages from signal-level messages to transaction-level messages beforesending the messages to the traffic analysis device and fromtransaction-level messages to signal-level messages before deliveringthe messages to the hardware model of the circuit design 340.

CONCLUSION

While the disclosed technology has been described with respect tospecific examples including presently preferred modes of carrying outthe disclosed technology, those skilled in the art will appreciate thatthere are numerous variations and permutations of the above describedsystems and techniques that fall within the spirit and scope of thedisclosed technology as set forth in the appended claims. For example,while specific terminology has been employed above to refer toelectronic design automation processes, it should be appreciated thatvarious examples of the disclosed technology may be implemented usingany desired combination of electronic design automation processes.

What is claimed is:
 1. A method, comprising: associating, by a hardwaremodel of interface circuitry implemented in a reconfigurable hardwaremodeling device, dispatch time information with messages when themessages are dispatched by a hardware model of a circuit designimplemented in the reconfigurable hardware modeling device, the dispatchtime information of a particular message including information aboutwhen, based on a model time reference provided in the reconfigurablehardware modeling device, the particular message is dispatched by thehardware model of the circuit design; and sending the messages and thedispatch time information to a traffic analysis device.
 2. The methodrecited in claim 1, wherein the associating comprises: inserting thedispatch time information of each of the messages in a metadata field ofor a data field of the each of the messages or in special messages. 3.The method recited in claim 1, further comprising: associating, by thehardware model of the interface circuitry, arrival time information withthe messages when the messages are delivered to the hardware model ofthe circuit design, the arrival time information of a particular messageincluding information about when, based on the model time reference, theparticular message is delivered to the hardware model of the circuitdesign, wherein the sending comprises sending the arrival timeinformation along with the messages and the dispatch information to thetraffic analysis device.
 4. The method recited in claim 3, furthercomprising: determining, by the message analysis device, bandwidthinformation of ports of the circuit design based on the dispatch timeinformation and latency information based on the arrival timeinformation and the dispatch time information.
 5. The method recited inclaim 3, wherein the associating arrival time information with themessages comprises: inserting the arrival time information of each ofthe messages in a metadata field of or a data field of the each of themessages or in special messages.
 6. The method recited in claim 1,wherein the hardware model of the interface circuitry converts themessages from transaction-level messages to signal-level messages beforedelivering the messages to the hardware model of the circuit design andconverts the messages from signal-level messages to transaction-levelmessages before sending the messages to the traffic analysis device. 7.The method recited in claim 1, wherein the reconfigurable hardwaremodeling device is a hardware-based emulator or an FPGA-basedprototyping device.
 8. The method recited in claim 1, wherein thecircuit design is a design for a network switch, a router, a networkprocessor, or a network gateway.
 9. The method recited in claim 1,wherein the traffic analysis device is implemented at least in part by anetwork traffic tool, the network traffic tool being implemented by avirtual machine running on a computer.
 10. The method recited in claim1, wherein the model time reference is provided at least in part by amulti-bit register in the reconfigurable hardware modeling device. 11.One or more non-transitory computer-readable media storingcomputer-executable instructions for causing one or more processors togenerate bitstreams for programming a reconfigurable hardware modelingdevice to implement circuitry hardware models, the circuitry hardwaremodels comprising: a hardware model of a circuit design, and a hardwaremodel of interface circuitry configurable to associate dispatch timeinformation with messages when the messages are dispatched by a hardwaremodel of a circuit design implemented in the reconfigurable hardwaremodeling device, the dispatch time information of a particular messageincluding information about when, based on a model time referenceprovided in the reconfigurable hardware modeling device, the particularmessage is dispatched by the hardware model of the circuit design. 12.The one or more non-transitory computer-readable media recited in claim11, wherein the association of the dispatch time information with themessages comprises: inserting the dispatch time information of each ofthe messages in a metadata field of or a data field of the each of themessages or in special messages.
 13. The one or more non-transitorycomputer-readable media recited in claim 11, wherein the hardware modelof the interface circuitry is configurable to further associate arrivaltime information with the messages when the messages are delivered tothe hardware model of the circuit design, the arrival time informationof a particular message including information about when, based on themodel time reference, the particular message is delivered to thehardware model of the circuit design, wherein the messages, the arrivaltime information and the dispatch information are sent to a trafficanalysis device.
 14. The one or more non-transitory computer-readablemedia recited in claim 13, wherein the traffic analysis devicedetermines bandwidth information of ports of the circuit design based onthe dispatch time information and determines latency information basedon the arrival time information and the dispatch time information. 15.The one or more non-transitory computer-readable media recited in claim13, wherein the association of the arrival time information with themessages comprises: inserting the arrival time information of each ofthe messages in a metadata field of or a data field of the each of themessages or in special messages
 16. The one or more non-transitorycomputer-readable media recited in claim 11, wherein the hardware modelof the interface circuitry converts the messages from transaction-levelmessages to signal-level messages before delivering the messages to thehardware model of the circuit design and converts the messages fromsignal-level messages to transaction-level messages before sending themessages to the traffic analysis device.
 17. The one or morenon-transitory computer-readable media recited in claim 11, wherein thereconfigurable hardware modeling device is a hardware-based emulator oran FPGA-based prototyping device.
 18. The one or more non-transitorycomputer-readable media recited in claim 11, wherein the circuit designis a design for a network switch, a router, a network processor, or anetwork gateway.
 19. The one or more non-transitory computer-readablemedia recited in claim 11, wherein the traffic analysis device isimplemented at least in part by a network traffic tool, the networktraffic tool being implemented by a virtual machine running on acomputer.
 20. The one or more non-transitory computer-readable mediarecited in claim 11, wherein the model time reference is provided atleast in part by a multi-bit register in the reconfigurable hardwaremodeling device.
 21. A reconfigurable hardware modeling deviceprogrammed to implement circuitry hardware models, the circuitryhardware models comprising: a hardware model of a circuit design, and ahardware model of interface circuitry configurable to associate dispatchtime information with messages when the messages are dispatched by ahardware model of a circuit design implemented in the reconfigurablehardware modeling device, the dispatch time information of a particularmessage including information about when, based on a model timereference provided in the reconfigurable hardware modeling device, theparticular message is dispatched by the hardware model of the circuitdesign.
 22. The reconfigurable hardware modeling device recited in claim21, wherein the association of the dispatch time information with themessages comprises: inserting the dispatch time information of each ofthe messages in a metadata field of or a data field of the each of themessages or in special messages.
 23. The reconfigurable hardwaremodeling device recited in claim 21, wherein the hardware model of theinterface circuitry is configurable to further associate arrival timeinformation with the messages when the messages are delivered to thehardware model of the circuit design, the arrival time information of aparticular message including information about when, based on the modeltime reference, the particular message is delivered to the hardwaremodel of the circuit design, wherein the messages, the arrival timeinformation and the dispatch information are sent to a traffic analysisdevice.
 24. The reconfigurable hardware modeling device recited in claim23, wherein the traffic analysis device determines bandwidth informationof ports of the circuit design based on the dispatch time informationand determines latency information based on the arrival time informationand the dispatch time information.
 25. The reconfigurable hardwaremodeling device recited in claim 23, wherein the association of thearrival time information with the messages comprises: inserting thearrival time information of each of the messages in a metadata field ofor a data field of the each of the messages or in special messages 26.The reconfigurable hardware modeling device recited in claim 21, whereinthe hardware model of the interface circuitry converts the messages fromtransaction-level messages to signal-level messages before deliveringthe messages to the hardware model of the circuit design and convertsthe messages from signal-level messages to transaction-level messagesbefore sending the messages to the traffic analysis device.
 27. Thereconfigurable hardware modeling device recited in claim 21, wherein thereconfigurable hardware modeling device is a hardware-based emulator oran FPGA-based prototyping device.
 28. The reconfigurable hardwaremodeling device recited in claim 21, wherein the circuit design is adesign for a network switch, a router, a network processor, or a networkgateway.
 29. The reconfigurable hardware modeling device recited inclaim 21, wherein the traffic analysis device is implemented at least inpart by a network traffic tool, the network traffic tool beingimplemented by a virtual machine running on a computer.
 30. Thereconfigurable hardware modeling device recited in claim 21, wherein themodel time reference is provided at least in part by a multi-bitregister in the reconfigurable hardware modeling device.